import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInstitution(query) {
  return request({
    url: '/system/institution/list',
    method: 'get',
    params: query
  })
}

// 查询【机构】列表
export function getInsoption(query) {
  return request({
    url: '/system/institution/get/ins/option',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getInstitution(id) {
  return request({
    url: '/system/institution/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addInstitution(data) {
  return request({
    url: '/system/institution',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateInstitution(data) {
  return request({
    url: '/system/institution',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delInstitution(id) {
  return request({
    url: '/system/institution/' + id,
    method: 'delete'
  })
}


//机构详情
export function getInstitutionDetail(query) {
  return request({
    url: '/system/institution/get/detail',
    method: 'get',
    params: query
  })
}